﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DataBase.Daihoctuonglai;

namespace dai_hoc_tuong_lai.Areas.Admin.Models
{
    public class VanbanModel
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string Noidung { get; set; }
        public Nullable<System.DateTime> NgayTao { get; set; }

        public static void MapFrom(VanbanModel Model, ref Van_Ban entity)
        {
            entity.Id = Model.Id;
            entity.Title = Model.Title;
            entity.Noidung = Model.Noidung;
            entity.NgayTao = Model.NgayTao;
        }

        public static void MapFrom(Van_Ban entity, ref VanbanModel Model)
        {
            Model.Id = entity.Id;
            Model.Title = entity.Title;
            Model.Noidung = entity.Noidung;
            Model.NgayTao = entity.NgayTao;
        }
    }
}